package org.NooLab.somclients.components;

import java.io.Serializable;




public class SomClientsProperties 
									implements 
												Serializable,
												SomClientsPropertiesPublicIntf {

	
	
	public static final String _APP_CONTEXT_ITEXX = "itexx";
	public static final String _APP_CONTEXT_ALONE = "standalone";
	
	
	transient SomClientsFactory scFactory;
	
	private String homeDir;
	private String systemRootDir;
	private int[] systemPorts = new int[2];
	private int[] servicePorts = new int[2];
	
	
	// ========================================================================
	protected SomClientsProperties(){
		
	}
	
	public SomClientsProperties( SomClientsPropertiesPublicIntf sciprops) {
		
		homeDir = sciprops.getHomeDir() ; 
		systemRootDir = sciprops.getSystemRootDir() ;
		systemPorts = sciprops.getSystemPorts() ;
		servicePorts = sciprops.getServicePorts() ;
	}
	// ========================================================================
	
	
	


	public void setClientsFactory(SomClientsFactory somClientsFactory) {
	
		
	}

	@Override
	public void setHomeDir(String dir) {
		homeDir = dir;
	}

	@Override
	public void setSystemRootDir(String dir) {
		// 
		systemRootDir = dir;
	}

	@Override
	public void setSystemPorts(int[] systemports) {
		 
		systemPorts[0] = systemports[0];
		systemPorts[1] = systemports[1];
	}

	@Override
	public void setServicePorts(int[] serviceports) {
		// 
		servicePorts[0] = serviceports[0];
		servicePorts[1] = serviceports[1];
	}


	public SomClientsFactory getScFactory() {
		return scFactory;
	}


	public String getHomeDir() {
		return homeDir;
	}


	public String getSystemRootDir() {
		return systemRootDir;
	}


	public int[] getSystemPorts() {
		return systemPorts;
	}


	public int[] getServicePorts() {
		return servicePorts;
	}

}
